package chain;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 责任链模式-抽象处理者
 * @Date: Created in 2021/12/28 10:56
 */
public abstract class Handler {

    private Handler handler;


    public void setNext(Handler handler) {
        this.handler = handler;
    }

    public Handler getNext() {
        return handler;
    }

    /**
     * 处理请求方法
     *
     * @param request 参数
     */
    public abstract void handlerRequest(String request);

}
